from django.db import models


# Create your models here.
class MetroRoute(models.Model):
	route = models.CharField(max_length=16)
	start_end = models.CharField(max_length=16)
	station = models.CharField(max_length=512)
	is_show = models.BooleanField(default=1)
	create_time = models.DateTimeField(auto_now=True)

	class Meta:
		db_table = 'MetroRoute'


class MetroStop(models.Model):
	number = models.IntegerField(unique=True)
	station_name = models.CharField(max_length=16)
	location = models.CharField(max_length=64)
	route = models.CharField(max_length=16)
	route_common = models.CharField(unique=True, max_length=64)
	is_show = models.BooleanField(default=1)
	create_time = models.DateTimeField(auto_now=True)

	class Meta:
		db_table = 'MetroStop'
